<?php

/** 
 * @author juanjo
 * 
 * 
 */
class SQLException extends Exception
   {

      //TODO - Insert your code here
      /**
       * 
       * @param  message[optional]
 
       * @param  code[optional]
 
       * @param  previous[optional]
	  
       */
      public function __construct( $message )
         {
            parent :: __construct ( $message );
         }
         
      public function __toString()
        {
           return __CLASS__ . " Codigo de error: [ { $this -> code } ] Error: [ { $this -> message } ]";
        }           
   }